<?php

namespace common\models;

use common\base\BaseBackendActiveRecord;
use yii\base\Model;
use yii\behaviors\TimestampBehavior;

/**
 * This is the model class for table "point_time".
 *
 * @property int $id 自增
 * @property int $ca_id 途径点id
 * @property string $departuretime 固定发车时间
 * @property string $presaletime 预售时间
 * @property string $closingtime 停售时间
 * @property int $created_at 添加时间
 * @property int $updated_at 更新时间
 */
class PointTime extends BaseBackendActiveRecord
{

    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'point_time';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['departuretime','presaletime','closingtime'],'string'],
            [['ca_id'],'integer'],
            [['created_at','updated_at'], 'safe'],
        ];
    }


    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => '自增',
            'ca_id'=>'途径点id',
            'departuretime'=>'发车时间',
            'presaletime'=>'预售时间',
            'closingtime'=>'停售时间',
            'created_at' => '创建时间',
            'updated_at' => '更新时间',
        ];
    }

}
